﻿using System.ComponentModel.DataAnnotations;

namespace NETCORE.TAttribute.Valide
{
    public class PersonalRequest
    {
        public int Id { get; set; }

        [Required]
        [MinLength(2), MaxLength(20)]
        public string Name { get; set; }

        [CanToInt]
        public string Sex { get; set; }

        [Required]
        [MinLength(2), MaxLength(20)]
        public string Address { get; set; }

    }
}
